<?php 
include ("conn.php");
$id = $_POST['id'];
$age = $_POST['age'];
$name = $_POST['name'];
$result = $_POST['result'];
$txz = $_POST['txz'];
$sql = "update result set name = '" . $name . "',age = $age,result = $result, txz='$txz' where id = $id";
if ($conn ->query($sql)) {
	echo "修改成功！";
} else {
	echo "Error:" . $sql . "<br>" . $conn -> error;
}
$conn -> close();